package com.qiaoas.springbootddd.Infrastructure.Repository;

import java.util.List;

public interface BoRepository<IBoT, BoSearch, BoSort> {

    void add(IBoT bo);

    void remove(IBoT bo);

    IBoT Find(String keyId);

    List<IBoT> FindByCondition(BoSearch searchCriteria);

    List<IBoT> FindByCondition(BoSearch searchCriteria, BoSort sortCriteria);
}
